using System;
using System.Collections.Generic;
using System.Text;

namespace Dll.Essences
{
   public class OrderDetails
    {
        int orderDetailID;
        int orderID;
        int goodsID;
        bool isNexyPrice=false;
        string goodsName;
        double count;
        double realCount;
        double price;
        int providersID;
        string providersName;
        string producersName;
        public double[] AllPrices;
        public string[] AllTerms;
        int bindID;
        string prodName,gPName;
        public OrderDetails()
        {
            prodName = "";
            gPName = "";
        }

        public OrderDetails(int OrderID, int GoodsID, int Count, double Price, int ProvidersID, string GoodsName, string ProvidersName)
        {
            orderID = OrderID;
            goodsID = GoodsID;
            count = Count;
            price = Price;
            providersID = ProvidersID;
            goodsName = GoodsName;
            providersName = ProvidersName;
        }

        public int OrderDetailID
        {
        set
        {
           orderDetailID = value;
        }
        get
        {
           return orderDetailID;
        }
        }

        public int OrderID
        {
        set
        {
            orderID = value;
        }
        get
        {
            return orderID;
        }
        }

        public bool IsNexyPrice
        {
        set
        {
           isNexyPrice = value;
        }
        get
        {
           return isNexyPrice;
        }
        }

        public int GoodsID
        {
        set
        {
            goodsID = value;
        }
        get
        {
            return goodsID;
        }
        }

        public string GoodsName
        {
        set
        {
            goodsName = value;
        }
        get
        {
            return goodsName;
        }
        }

        public string ProvidersName
        {
        set
        {
            providersName = value;
        }
        get
        {
            return providersName;
        }
        }

        public string ProducersName
        {
        set
        {
           producersName = value;
        }
        get
        {
           return producersName;
        }
        }

        public double RealCount
        {
        set
        {
           realCount = value;
        }
        get
        {
           return realCount;
        }
        }

        public double Count
        {
        set
        {
            count = value;
        }
        get
        {
            return count;
        }
        }

        public double Price
        {
        set
        {
            price = value;
        }
        get
        {
            return price;
        }
        }

        public int ProvidersID
        {
        set
        {
            providersID = value;
        }
        get
        {
            return providersID;
        }
        }

        public int BindID
        {
        set
        {
           bindID = value;
        }
        get
        {
           return bindID;
        }
        }

        public string ProdName
        {
        set
        {
           prodName = value;
        }
        get
        {
           return prodName;
        }
        }

        public string GPName
        {
        set
        {
           gPName = value;
        }
        get
        {
           return gPName;
        }
        }

    public static bool isEqual (OrderDetails O1, OrderDetails O2)
        {
         
              return (O1.GoodsID == O2.GoodsID && O1.ProvidersID == O2.ProvidersID);
        }

       public static bool isNonEqual(OrderDetails O1, OrderDetails O2)
        {
         
                return !(O1.GoodsID == O2.GoodsID && O1.ProvidersID == O2.ProvidersID);
        }
    }
}
